package com.zlt.controller;


import com.zlt.bean.User;
import com.zlt.service.UserService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class UserController {
    @Resource
    private UserService userService;
    @PostMapping("/login.jsp")
    public String login(String username, String password) {

        User user1 = userService.doLogin(username, password);
        return "首页";
    }
}

